﻿<p:ZComponent x:Class="ZOIL.Library.Components.TopicCardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    xmlns:p="http://hci.uni-konstanz.de/permaedia"
    xmlns:local="clr-namespace:ZOIL.Library.Components"
    p:ZObjectDragDropBehavior.IsDraggable="False"
    p:ZObjectResizeBehavior.IsResizable="False"
    p:ZObjectRotateBehavior.IsRotatable="False"
    p:ZInformationLandscape.ZoomTarget="True"
    p:ZInformationLandscape.ZoomMargin="10,10,10,10">

        <p:ZComponentFrames x:Name="PART_SemanticZoom" Focusable="False">
            
            <p:ZComponentFrame WidthNeeded="{Binding FakeZoomLevelOut}">
                <Grid x:Name="fakeGridOut" Width="200" Height="200"/>
            </p:ZComponentFrame>
            
            <p:ZComponentFrame WidthNeeded="{Binding ZoomLevel1}">
                <Grid x:Name="logoGrid"  Width="200" Height="200">
                    
                    <Rectangle x:Name="imageRectangle" Margin="0"
                    StrokeThickness="0.2" RadiusX="0.4" RadiusY="0.4" StrokeLineJoin="Bevel">
                        <Rectangle.Fill>
                            <ImageBrush x:Name="imageBrush"/>
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock Name="text" Padding="0, 70, 0, 0" Text="{Binding Text}" Background="Transparent" Foreground="White"
                             FontSize="{Binding TextFontSize}" FontFamily="101! Block LetterZ"
                             TextAlignment="Center" TextWrapping="Wrap"/>
                   
                </Grid>
            </p:ZComponentFrame>
           
            <p:ZComponentFrame WidthNeeded="{Binding FakeZoomLevelIn}">
                <Grid x:Name="fakeGridIn" Width="200" Height="200"/>
            </p:ZComponentFrame>
       
        </p:ZComponentFrames>
</p:ZComponent>
